/*
 * $Id: TreeNode.java 254 2008-07-17 07:09:20Z Tai.NguyenAnhCR $
 * $URL: http://jvnmobilegis.googlecode.com/svn/branches/hcmmobilemap/src/org/javavietnam/gis/shared/midp/model/TreeNode.java $
 * $Author: Tai.NguyenAnhCR $
 * $Revision: 254 $
 * $Date: 2008-07-17 07:09:20 +0000 (Thu, 17 Jul 2008) $
 *
 * ====================================================================
 *
 * Copyright (C) 2006-2007 by JVNGIS
 *
 * All copyright notices regarding JVNMobileGIS MUST remain
 * intact in the Java codes and resource files.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Support can be obtained from project homepage at:
 * http://code.google.com/p/jvnmobilegis/
 *
 * Correspondence and Marketing Questions can be sent to:
 * khanh.lnq AT gmail.com
 * 
 * @version: 1.0
 * @author: Khanh Le
 * @Date Created: 22 Jun 2007
 */

package org.javavietnam.gis.shared.midp.model;

/**
 * Klasse zur Datenhaltung innerhalb des LayerPanel
 */
public class TreeNode implements TreeNodeInterface {

    private LayerInformation content;
    private FeatureInformation feature;

    public TreeNode() {
    }

    public TreeNode(LayerInformation content) {
        this.content = content;
    }

    public String toString() {
        return content.toString();
    }

    public LayerInformation getLayerInformation() {
        return content;
    }

    public FeatureInformation getFeatureInformation() {
        return feature;
    }

    public void setFeatureInformation(FeatureInformation feature) {
        this.feature = feature;
    }
}
